unit ufrmConfiguracion;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, JvExStdCtrls, JvButton,
  JvCtrls, JvFooter, Vcl.ExtCtrls, JvExExtCtrls, JvExtComponent, Vcl.ComCtrls,
  JvExComCtrls, JvComCtrls, JvExControls, JvNavigationPane, Vcl.ImgList,
  Vcl.Mask, JvExMask, JvToolEdit;

type
  TfrmConfiguracion = class(TForm)
    foot1: TJvFooter;
    btn2: TJvFooterBtn;
    btn3: TJvFooterBtn;
    tv1: TJvTreeView;
    page1: TJvPageControl;
    il1: TImageList;
    tsRutas: TTabSheet;
    tsSMRT: TTabSheet;
    header2: TJvNavPanelHeader;
    tsGeneral: TTabSheet;
    header1: TJvNavPanelHeader;
    header3: TJvNavPanelHeader;
    edtTemp: TJvFilenameEdit;
    lbl1: TLabel;
    grpMapa: TGroupBox;
    lbl2: TLabel;
    Label1: TLabel;
    Label2: TLabel;
    edtLatitud: TEdit;
    edtLongitud: TEdit;
    edtZoom: TEdit;
    procedure btn2Click(Sender: TObject);
    procedure btn3Click(Sender: TObject);
    procedure tv1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmConfiguracion: TfrmConfiguracion;

implementation

uses JclSysInfo;

{$R *.dfm}

procedure TfrmConfiguracion.btn2Click(Sender: TObject);
begin
  ModalResult := mrOk;
end;

procedure TfrmConfiguracion.btn3Click(Sender: TObject);
begin
ModalResult := mrCancel;
end;

procedure TfrmConfiguracion.FormCreate(Sender: TObject);
begin
  if Trim(edttemp.Text) = '' then
    edtTemp.Text := jclsysinfo.GetWindowsTempFolder +'\NS_temp';
end;

procedure TfrmConfiguracion.tv1Click(Sender: TObject);
begin
  page1.ActivePageIndex := tv1.Selected.Index ;
end;

end.
